//
//  MainTabView.swift
//  WaterTownCharm
//
//  Created by 今安在 on 2024/3/24.
//

import SwiftUI

struct MainTabView: View {
    var body: some View {
        
        TabView{
            home()
                .tabItem {
                    Image(systemName: "house.fill")
                    Text("首页")
                }
            
            find()
            .tabItem {
                    Image(systemName: "movieclapper.fill")
                    Text("发现")
                }
            
            VStack{
                    map()
                    .padding(.bottom)
            }
            .tabItem {
                    Image(systemName: "map.fill")
                    Text("地图")
                }
            
            my()
                .tabItem {
                    Image(systemName: "person.fill")
                    Text("我的")
                }
        }

    }
}

#Preview {
    MainTabView()
}
